/productOrder
[POST]
This usecase to create the product ordering for Plans and AddOns.
URL
https://[localhost]:[port]/emida-ux-lcr/emida-ux/v1/{businessId}/productOrder
URI Params
| name | type | description | required |
|---|
| businessId | string | Default CR for Costa Rica | Y |
| name | type | description | required |
|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
Body
Definitions - DataPlan
| Name | Type | Description | Required |
|---|
| category | String | Defines the category of the product order. default = esimPrepaid | Y |
| productOrderItem[].id | String | Indicates the count of order item. default = 1 | N |
| productOrderItem[].action | String | Indicates the action to be performed for order item. default = add | N |
| productOrderItem[].product.isBundle | Boolean | Indicates whether the product is a bundle (true or false). | N |
| productOrderItem[].product.@type | String | Type of the related product. Default: Product. | N |
| productOrderItem[].product.productOffering.id | String | Indicates the offer id. example: OFFER-DP-001. | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: MSISDN. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | msisdn number to initiate the provisioning | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: planType. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | Type of offer for product provisioning (Dataplan). | Y |
| relatedParty[].id | String | reseller Id for the provisioning. | N |
| relatedParty[].role | String | Role for the reseller. Default: Seller. | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
| relatedParty[].id | String | Idenitification value of the customer. example: 900770050 | N |
| relatedParty[].name | String | Full name of the customer. example: Juan;Carlos;Perez;Gonzalez. | N |
| relatedParty[].role | String | Role of the related name. Default: Customer. | N |
| relatedParty[].characteristic[].name | String | Identification type of the customer. Default:identificationType | N |
| relatedParty[].characteristic[].valueType | String | DataType of the IdentificationType. Default: String. | N |
| relatedParty[].characteristic[].value | String | value for the Identification Type. example: Passport | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
Definitions - Plan
| Name | Type | Description | Required |
|---|
| category | String | Defines the category of the product order. default = esimPrepaid | Y |
| productOrderItem[].id | String | Indicates the count of order item. default = 1 | N |
| productOrderItem[].action | String | Indicates the action to be performed for order item. default = add | N |
| productOrderItem[].product.isBundle | Boolean | Indicates whether the product is a bundle (true or false). | N |
| productOrderItem[].product.@type | String | Type of the related product. Default: Product. | N |
| productOrderItem[].product.productOffering.id | String | Indicates the offer id. example: OFFER-DP-001. | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: MSISDN. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | msisdn number to initiate the provisioning | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: planType. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | Type of offer for product provisioning (Plan). | Y |
| relatedParty[].id | String | reseller Id for the provisioning. | N |
| relatedParty[].role | String | Role for the reseller. Default: Seller. | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
| relatedParty[].id | String | Idenitification value of the customer. example: 900770050 | N |
| relatedParty[].name | String | Full name of the customer. example: Juan;Carlos;Perez;Gonzalez. | N |
| relatedParty[].role | String | Role of the related name. Default: Customer. | N |
| relatedParty[].characteristic[].name | String | Identification type of the customer. Default:identificationType | N |
| relatedParty[].characteristic[].valueType | String | DataType of the IdentificationType. Default: String. | N |
| relatedParty[].characteristic[].value | String | value for the Identification Type. example: Passport | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
Definitions - Addon
| Name | Type | Description | Required |
|---|
| category | String | Defines the category of the product order. default = esimPrepaid | Y |
| productOrderItem[].id | String | Indicates the count of order item. default = 1 | N |
| productOrderItem[].action | String | Indicates the action to be performed for order item. default = add | N |
| productOrderItem[].product.isBundle | Boolean | Indicates whether the product is a bundle (true or false). | N |
| productOrderItem[].product.@type | String | Type of the related product. Default: Product. | N |
| productOrderItem[].product.productOffering.id | String | Indicates the offer id. example: OFFER-DP-001. | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: MSISDN. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | msisdn number to initiate the provisioning | Y |
| productOrderItem[].product.productCharacteristic[].name | String | Name of the product characteristic. Default: planType. | Y |
| productOrderItem[].product.productCharacteristic[].value | String | Type of offer for product provisioning (Addon). | Y |
| relatedParty[].id | String | reseller Id for the provisioning. | N |
| relatedParty[].role | String | Role for the reseller. Default: Seller. | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
| relatedParty[].id | String | Idenitification value of the customer. example: 900770050 | N |
| relatedParty[].name | String | Full name of the customer. example: Juan;Carlos;Perez;Gonzalez. | N |
| relatedParty[].role | String | Role of the related name. Default: Customer. | N |
| relatedParty[].characteristic[].name | String | Identification type of the customer. Default:identificationType | N |
| relatedParty[].characteristic[].valueType | String | DataType of the IdentificationType. Default: String. | N |
| relatedParty[].characteristic[].value | String | value for the Identification Type. example: Passport | N |
| relatedParty[].@referredType | String | Type of the related party. Default: Individual. | N |
cURL request - DataPlan
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "DataPlan"
}
]
}
}
],
"relatedParty": [
{
"id": "RESELLER-001",
"role": "Seller",
"@referredType": "Individual"
},
{
"id": "900770050",
"name": "Juan;Carlos;Perez;Gonzalez",
"role": "Customer",
"characteristic": [
{
"name": "identificationType",
"valueType": "string",
"value": "Passport"
}],
"@referredType": "Individual"
}
]
}'
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "DataPlan"
}
]
}
}
]
}'
cURL request - Plan
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "Plan"
}
]
}
}
],
"relatedParty": [
{
"id": "RESELLER-001",
"role": "Seller",
"@referredType": "Individual"
},
{
"id": "900770050",
"name": "Juan;Carlos;Perez;Gonzalez",
"role": "Customer",
"characteristic": [
{
"name": "identificationType",
"valueType": "string",
"value": "Passport"
}],
"@referredType": "Individual"
}
]
}'
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "Plan"
}
]
}
}
]
}'
cURL request - Addon
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "Addon"
}
]
}
}
],
"relatedParty": [
{
"id": "RESELLER-001",
"role": "Seller",
"@referredType": "Individual"
},
{
"id": "900770050",
"name": "Juan;Carlos;Perez;Gonzalez",
"role": "Customer",
"characteristic": [
{
"name": "identificationType",
"valueType": "string",
"value": "Passport"
}],
"@referredType": "Individual"
}
]
}'
curl --location 'https://nonprod.lcr.esb.cloud.lla.com/dev/emida-ux-lcr/emida-ux/v1/CR/productOrder' \
--header 'X-Correlation-ID: {{$guid}}' \
--header 'client_secret: ******' \
--header 'client_id: ******' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "esimPrepaid",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
},
{
"name": "planType",
"value": "Addon"
}
]
}
}
]
}'
Response
{
"id": "ORD-20251208143025-5432",
"category": "esimPrepaid",
"orderDate": "2024-02-05T08:53:36.042-05:00",
"state": "completed",
"description": "Product provisioned successfully",
"productOrderItem": [
{
"id": "1",
"action": "add",
"product": {
"isBundle": false,
"@type": "Product",
"productOffering": {
"id": "OFFER-DP-001"
},
"productCharacteristic": [
{
"name": "MSISDN",
"value": "69877689"
}
]
}
}
]
}